package cn.smbms.service.impl;

import cn.smbms.dao.provider.ProviderMapper;
import cn.smbms.pojo.Provider;
import cn.smbms.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "providerService")
public class ProviderServiceImpl implements ProviderService {
    @Autowired
    private ProviderMapper providerMapper;

    @Override
    public List<Provider> getListProvider() {
        return providerMapper.getListProvider();
    }

    @Override
    public List<Provider> getListName(String name) {
        return providerMapper.getListName(name);
    }

    @Override
    public int add(Provider provider) {
        return providerMapper.add(provider);
    }

    @Override
    public int del(int id) {
        return providerMapper.del(id);
    }

    @Override
    public int update(Provider provider) {
        return providerMapper.update(provider);
    }
}
